import request from '@/libs/request';
//https://airport.hjlinfo.top/airport/swagger/#

export default {
	//获取字典
	getRiskDict: (params = {}, options = {}) => {
		return request.get('/risk/dict', params, options)
	},
	//编辑安全隐患
	editRisk: (params = {}, options = {}) => {
		return request.post('/risk/editSecurity', params, options)
	},
	//添加安全隐患
	addRisk: (params = {}, options = {}) => {
		return request.post('/risk/addSecurity', params, options)
	},
	//删除安全隐患
	delRisk: (params = {}, options = {}) => {
		return request.post('/risk/deleteSecurity', params, options)
	},
	//审核安全隐患
	auditRisk: (params = {}, options = {}) => {
		return request.post('/risk/auditSecurity', params, options)
	},
	//获取安全隐患列表
	getRiskList: (params = {}, options = {}) => {
		return request.get('/risk/securityList', params, options)
	},
	//获取安全隐患清单
	getRiskInventory: (params = {}, options = {}) => {
		return request.get('/risk/securityList', params, options)
	},
	//获取安全隐患详情
	getRiskDetail: (params = {}, options = {}) => {
		return request.get('/risk/securityDetail', params, options)
	},
	//导入安全隐患excel
	importRiskExcel: (params = {}, options = {}) => {
		return request.post('/risk/importSecurity', params, options)
	},
	//导出安全隐患excel
	exportRiskExcel: (params = {}, options = {}) => {
		return request.post('/risk/exportSecurity', params, options)
	},
	//导出全部安全隐患excel
	exportAllRiskExcel: (params = {}, options = {}) => {
		return request.post('/risk/exportSecurityAll', params, options)
	},
	//彻底删除安全隐患
	clearSecurity: (params = {}, options = {}) => {
		return request.post('/risk/clearSecurity', params, options)
	},
	//还原安全隐患
	restoreSecurity: (params = {}, options = {}) => {
		return request.post('/risk/restoreSecurity', params, options)
	}
}